/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.gft.bancosimulador.controller;

import com.gft.bancosimulador.beans.Cliente;
import com.gft.bancosimulador.business.ClienteBusiness;
import com.gft.bancosimulador.outros.Sucesso;
import com.gft.bancosimulador.views.ClienteView;

/**
 *
 * @author AEPI
 */
public class ConsultarClienteController extends ClienteView {
    
    public ConsultarClienteController(){
        
    }
    
    public ConsultarClienteController(int codigo){
        this.consultar(codigo);
    }

    @Override
    public void salvar() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void consultar(int codigo) {
        
        Cliente cliente;
        cliente = ClienteBusiness.getInstance().consultarClientePorCodigo(codigo);
        this.exibirCliente(cliente);       
         
    }

    @Override
    protected String getTitulo() {
        return "Consultar Cliente";
    }

    @Override
    protected String getRotuloIdentificador() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    protected String getFormatoMascaraIdentificador() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void cancelar() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void reativar() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void bloquear() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    
}
